import com.wn.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author yellow Docter
 * @date 2022 -07-07
 * @desc
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:application.xml")
public class SpringTest01 {

    @Autowired
    private UserService userService;

    @Test
    public void demo01(){
        userService.save();
    }

    @Test
    public void demo02(){
        String msg = userService.doSomething("张三", 200d);
        System.out.println("msg = " + msg);
    }

}
